<h1>Layouts</h1>
<table class="table table-striped">
  <thead>
    <tr>
      <th>Path</th>
      <th>Format</th>
      <th>Locale</th>
      <th>Handler</th>
      <th>Actions</th>
    </tr>
  </thead>
  <tbody>
    <% @layouts.each do |layout| %>
      <tr>
        <td><%= layout.path %></td>
        <td><%= layout.format %></td>
        <td><%= layout.locale %></td>
        <td><%= layout.handler %></td>
        <td>
          <%= link_to 'Edit', kuztuscms.edit_layout_path(layout), :class => 'btn btn-mini' %>
          <%= link_to 'Destroy', 
            kuztuscms.layout_path(layout),
            :method => :delete,
            :confirm => 'Are you sure?',
            :class => 'btn btn-mini btn-danger' if layout.path != 'default' %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

<%= link_to 'New', kuztuscms.new_layout_path, :class => 'btn btn-primary' %>
